﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MBSBusinessEntities;
using System.Transactions;
namespace MBSBLC
{
    public partial class BLC
    {
        #region User
        public bool authenticateUser(string emailID, string password)
        {
            bool status = false;
            UserBE user = new UserBE(emailID, password);
            status = user.authenticate();

            return status;
        }

        public bool signUP(string name, string emailID, string password, int mobileNo, bool notifyMe)
        {
            bool status = false;
            UserBE userBE = new UserBE(name, emailID, password, mobileNo, notifyMe);

            status = userBE.Add();
            return status;
        }

        public int getUserByEmailID(string emailID)
        {
            UserBE userBE = new UserBE();
            int id = userBE.GetUserIDByEmail(emailID);
            return id;

        }
        #endregion

    }
}
